<?php 

class SearchModel extends BaseModel
{
	private $table;
	
	/**
	 * Hold an instance of the class
	 * @var CommonPageModel
	 */
	private static $_instance = null;
	
	/**
	 * A private constructor
	 * Prevents direct creation of object
	 */
	private function __construct()
	{
		$this->_init();
		$this->table = TABLE_PREFIX . "search";
	}

	/**
	 * The singleton method
	 * @return CommonPageModel
	 */
	public static function getInstance()
	{
		if (!self::$_instance instanceof self)
			self::$_instance = new self;

		return self::$_instance;
	}
	
	public function fetchSearch(){
		
		return dibi::select("*")
				->from(TABLE_SEARCH)
				->fetchAll();
	}
	
}

?>
